<?php

namespace App\Http\Requests\QH;

use Illuminate\Foundation\Http\FormRequest;

class OrderSubmitRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'courseId' => 'bail|required',
            'type' => 'bail|required|in:1,2,3,4', // 类型，1：直接购买，2：购买激活码，3：购买单科视频，4：购买网课专栏
        ];
    }
}
